package lib

import "time"

func Remain(target time.Time) (minute, second int) {

	now := time.Now()

	duration := target.Sub(now)

	minute = int(duration.Minutes())
	if minute < 0 {
		minute = 0
	}
	second = int(duration.Seconds()) % 60
	if second < 0 {
		second = 0
	}

	return
}
